import 'package:financing_wallet/product/api/product_url.dart';
import 'package:flutter_network/service_method.dart';
import 'package:wallet_utils/report_widget/base/callback/base_callback.dart';
import 'package:wallet_utils/report_widget/base/callback/net_request_utils.dart';


class ProductApi{
  static obtainBackPageInfo(BaseCallback callback) {
    Map<String, dynamic> paramsMap = {};
    return NetRequestUtils.request(
        future: HttpRequest().requestGet(
          ProductUrl.obtainBackPageInfo,
          params: paramsMap,
        ),
        callback: callback);
  }

  static obtainProductInfoV2(BaseCallback callback) {
    Map<String, dynamic> paramsMap = {};
    return NetRequestUtils.request(
        future: HttpRequest().requestPost(
          ProductUrl.obtainProductInfoV2,
          params: paramsMap,
        ),
        callback: callback);
  }
}